#pragma once
#include "pch.h"
#include "DirectXTK\VertexTypes.h"
#include "DirectXTK\CommonStates.h"
#include "DirectXTK\Effects.h"
#include "DirectXTK\PrimitiveBatch.h"
#include "DirectXTK\GeometricPrimitive.h"
#include "DirectXTK\SimpleMath.h"
using namespace DirectX;
using namespace DirectX::SimpleMath;
using Microsoft::WRL::ComPtr;
class Grid {
public:
	Grid(ID3D11Device* device,ID3D11DeviceContext* context,size_t div = 50);
	~Grid();

	void Draw();
private:
	std::unique_ptr<CommonStates> m_states;
	std::unique_ptr<BasicEffect> m_effect;
	std::unique_ptr<PrimitiveBatch<VertexPositionColor>> m_batch;
	ComPtr<ID3D11InputLayout> m_inputLayout;

	ComPtr<ID3D11Device> m_device;
	ComPtr<ID3D11DeviceContext> m_context;
	size_t divisions;
	Matrix m_world;
	Matrix m_view;
	Matrix m_proj;
};